package com.tinem.platform.client.user;

import com.tinem.platform.module.pojo.vo.IdBlankVo;
import com.tinem.platform.module.pojo.vo.auth.session.UserSessionToken;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author fengzhihao
 * @version v1
 * @program: platform
 * @className UserClient
 * @description TODO
 * @site
 * @company
 * @create 2021/12/22 17:32:16
 */
@FeignClient(value = "platform-cloud-service-user",contextId = "platform-cloud-service-user.session")
@RequestMapping("/session")
public interface SessionClient {
    @PostMapping("getAllSessionByUser.api")
    @ResponseBody
    List<UserSessionToken> getAllSessionByUser(@RequestBody IdBlankVo userId);

    @PostMapping("delAllSessionByUser.api")
    @ResponseBody
    Object delAllSessionByUser(@RequestBody IdBlankVo userId);

}
